<%@page import="com.sun.jmx.snmp.Enumerated"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src='../js/member.js'></script>
<link rel='stylesheet'href='../css/member.css'>
</head>
<body>
<h1>회원 정보 입력 결과</h1>
<jsp:useBean id="member" class="memberBean.MemberVo" scope="page"/>
<jsp:setProperty property="*" name="member"/>

<%
int size= 1024*1024*10;
String saveDir="C:/Users/jhta/Desktop/workspace0/1406_web/WebContent/memberPhoto/";
String oriFile="";
String sysFile="";
MultipartRequest multi=null;
try{
	multi = new MultipartRequest(
			request,
			saveDir,
			size,
			"utf-8",
			new DefaultFileRenamePolicy());
	out.print("<li>아이디 : "+ multi.getParameter("mid"));
	out.print("<li>성   명 : "+ multi.getParameter("irum"));
	Enumeration files = multi.getFileNames();
	String tempFile = (String)files.nextElement();
	oriFile = multi.getOriginalFileName(tempFile);
	sysFile = multi.getFilesystemName(tempFile);
	
	out.print("<li>원본파일명 : "+oriFile);
	out.print("<li>저장파일명 : "+sysFile);
	
}catch(Exception ex){
	out.print(ex.toString());
}

%>

<li>아이디 <%=member.getMid() %><br/>
<li>이름<%=member.getIrum()%><br/>
<li>닉네임<%=member.getNicname()%><br/>
<li>이메일<%=member.getEmail()%>@<%=member.getEmail1() %>

<p/>
<input type="button" value='목록으로' id='btnList'/>

<script>inputInit();</script>
</body>
</html>